<HEAD>
<BODY>
<?
include 'conexion.php';
extract($_POST);
extract($_GET);
$cod=0;
	/*$base= "ucg - copia";

	$conexion=mysql_connect("localhost","root","");

	mysql_select_db($base,$conexion);*/
	mysql_query("UPDATE compra1 SET causado='$causado' WHERE cod_c='$Modificar'",$conexion);
	mysql_query("INSERT into causado VALUES($cod,'$fecha',$Modificar,'$factura','$control')",$conexion);
	mysql_close($conexion);
	

?>

<script language='JavaScript'>

	window.self.location="consulta_compra_gen1.php?<? echo 'tipo='.$tipo.'&ano='.$ano; ?>"
  alert('!COMPRA CAUSADA!')
</script>

</HEAD>
</BODY>
